跳到主要内容

ChainSafe Gaming SDK

What is ChainSafe?

The Chain Gaming SDK is a software development kit that enables game developers to integrate blockchain technology into their games. It allows for creating, managing, and trading in-game assets on the blockchain, providing players with full ownership and control over their virtual items.

Quickstart

Connect to Caldera Chains by providing the Caldera Chain RPC. All ChainSafe Gaming methods have an optional field to add an RPC URL. This returns the native token's balance for the chain.

    string chain = "caldera";
string network = "testnet";
string account = "token_account_here";
string rpc = "RPC URL"; //Insert RPC URL here

string balance = await EVM.BalanceOf(chain, network, account, rpc);
print(balance);

More Information: Custom Interactions | ChainSafe Gaming SDK

ChainSafe Gaming: Documentation